x86/ucode: Drop ops->free_patch()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 1 Apr 2020 15:32:16 +0000 (16:32 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 3 Apr 2020 19:11:46 +0000 (20:11 +0100)
commit6b8836aa65947e58ba2b58573cece03754ad68f6
treea86fbb30a6d843c63cd0ee335d45493d10ee4f4c
parent4853f03dee2ed17cc421260d669377db253f0dac
x86/ucode: Drop ops->free_patch()

With the newly cleaned up vendor logic, each struct microcode_patch is a
trivial object in memory with no dependent allocations.

This is unlikely to change moving forwards, and function pointers are
expensive in the days of retpoline.  Move the responsibility to xfree() back
to common code.  If the need does arise in the future, we can consider
reintroducing the hook.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/microcode/amd.c
xen/arch/x86/cpu/microcode/core.c
xen/arch/x86/cpu/microcode/intel.c
xen/arch/x86/cpu/microcode/private.h